import 'package:live_music/models/moment_detail_model.dart';

class MomentListModel {
  List<MomentDetailModel> list;
  MomentListModel(this.list);

  factory MomentListModel.fromJson(List<dynamic> list) {
    // 调用自身构造方法传值并返回
    return MomentListModel(
      list.map((listItem) => MomentDetailModel.fromJson(listItem)).toList(),
    );
  }
}
